package com.hyt.it.ogt.ks.feign.hystrix;

import org.springframework.stereotype.Component;

import com.hyt.core.exception.NestedBusinessException;
import com.hyt.it.ogt.ks.feign.KwgovCilent;

import lombok.extern.slf4j.Slf4j;

@Slf4j
@Component
public class KwgovClientHystrix implements KwgovCilent{

	@Override
    public String getTaskInfo(String taskId) {
        log.error("获取政企考务考试任务信息失败，进入熔断");
        throw new NestedBusinessException("获取政企考务考试任务信息失败");
    }
	
	@Override
    public String getCandidateArea(String taskId, String timeId, String admissionNumber) {
		log.error("获取政企考务考生区域信息失败，进入熔断");
        throw new NestedBusinessException("获取政企考务考生区域信息失败");
	}
}
